package com.college.action;

import org.hibernate.Session;

import com.college.entity.Result;
import com.college.entity.Results;
import com.college.entity.Work;
import com.college.service.WorkService;

public class WorkAction extends BaseAction {
	public Work getWork() {
		return work;
	}
	public void setWork(Work work) {
		this.work = work;
	}
	public void setWorkService(WorkService workService) {
		this.workService = workService;
	}
	private Work work;
	private WorkService workService;
	public void querywork(){
		Results<Work> results=workService.query(work);
		 print(results);
	}
	public void addwork(){
		Result<Boolean> result=workService.addWork(work);
		print(result);
	}
	public void updatework() {
		Result<Boolean> result=workService.updatework(work);
		print(result);
	}
}
